package com.xunwulian.base.entity;

import java.util.Date;

public class TransactionEntity extends Entity {

    private static final long serialVersionUID = -7807283851358677181L;

    // 自己的订单号 唯一键
    private String recordm;

    // 公共的订单号 可能不唯一，与type联合必定唯一
    private String recordp;

    // 交易类型
    private Integer type;

    // 交易创建的时间
    private Date createTime;

    // 交易成功的时间
    private Date payTime;

    // 交易状态
    private Integer status;

    // 交易的金额
    private Double fee;

    // 订单目标用户，充值：给谁充值，扣款：扣谁的款
    private String userId;

    // 订单创建者
    private String adminId;

    public TransactionEntity() {
    }

    public TransactionEntity(String recordm,
                             Integer type,
                             Integer status,
                             Double fee,
                             String userId) {
        this.recordm = recordm;
        this.type = type;
        this.status = status;
        this.fee = fee;
        this.userId = userId;
    }

    public TransactionEntity(String recordm,
                             Integer type,
                             Integer status,
                             Double fee,
                             String userId,
                             String adminId) {

        this(recordm, type, status, fee, userId);
        this.adminId = adminId;
    }

    public String getRecordm() {
        return recordm;
    }

    public void setRecordm(String recordm) {
        this.recordm = recordm;
    }

    public String getRecordp() {
        return recordp;
    }

    public void setRecordp(String recordp) {
        this.recordp = recordp;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Double getFee() {
        return fee;
    }

    public void setFee(Double fee) {
        this.fee = fee;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getAdminId() {
        return adminId;
    }

    public void setAdminId(String adminId) {
        this.adminId = adminId;
    }
}
